package com.ssm.dao;

import com.ssm.model.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

public interface IUserDao {

    List<User> selectAllUser();
    User selectUserByUsername(@Param("username") String username, @Param("password") String password);

    User selectUserByusername(String username);
    void addUser(User user);

    void updateUser(User user);

}
